package pers.xiaojun.boot.module.infra.constants;

import pers.xiaojun.boot.common.pojo.BusinessCode;

/**
 * 基础设施模块业务代码
 *
 * @author xiaojun
 * @since 2025-11-09
 */
public interface BusinessCodeConstants {

    /* ====== 基础设施模块 002 ====== */

    // 001-049：字典错误
    BusinessCode CONFIG_NOT_EXISTS = BusinessCode.of(1_002_001, "参数配置不存在");
    BusinessCode CONFIG_KEY_EXISTS = BusinessCode.of(1_002_002, "参数键已存在");
    BusinessCode CONFIG_SYSTEM_CANNOT_DELETE = BusinessCode.of(1_002_003, "内置参数无法删除");

    // 050-099：文件错误
    BusinessCode FILE_CONFIG_NAME_EXISTS = BusinessCode.of(1_002_050, "配置名称已存在");
    BusinessCode FILE_STORAGE_NOT_EXISTS = BusinessCode.of(1_002_051, "存储类型不存在");
    BusinessCode FILE_CONFIG_NOT_EXISTS = BusinessCode.of(1_002_052, "配置不存在");
    BusinessCode FILE_CONFIG_ALREADY_MASTER = BusinessCode.of(1_002_053, "当前配置已经为主配置");
    BusinessCode FILE_CONFIG_MASTER_CANNOT_BE_DELETED = BusinessCode.of(1_002_054, "当前配置为主配置，无法删除");
    BusinessCode FILE_CONFIG_CONNECTION_ERROR = BusinessCode.of(1_002_055, "测试连接失败");
    BusinessCode FILE_URL_NOT_EXISTS = BusinessCode.of(1_002_056, "文件Url不存在");
    BusinessCode FILE_NOT_EXISTS = BusinessCode.of(1_002_057, "文件不存在");


}
